#define _CRT_SECURE_NO_WARNINGS

#include "DList.h"

void test1()
{
	DList* plist = DListInit();
	DListPushBack(plist, 1);
	DListPushBack(plist, 2);
	DListPushBack(plist, 3);
	DListPushBack(plist, 4);
	DListPushBack(plist, 5);
	DListPrint(plist);
	DListPopBack(plist);
	DListPopBack(plist);
	DListPopBack(plist);
	DListPrint(plist);
	DListPushFront(plist, 10);
	DListPushFront(plist, 20);
	DListPushFront(plist, 30);
	DListPrint(plist);
	DListPopFront(plist);
	DListPrint(plist);

	DListDestory(plist);

}

int main()
{
	test1();
	return 0;
}